package com.zyuan.lawyerport.view.aModule.activity;


import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.zyuan.lawyerport.R;
import com.zyuan.lawyerport.view.aModule.Bean.BuyServiceBean;

import java.util.List;

/**
 * 作者 ：RAN
 * 时间 ：2019/10/16 13:51
 * 类名 ：BuyServiceAdapter
 * 描述 ：购买法律服务适配器
 * 版本 ：1.0
 */
public class BuyServiceAdapter extends BaseQuickAdapter<BuyServiceBean, BaseViewHolder> {
    public BuyServiceAdapter( @Nullable List<BuyServiceBean> data) {
        super(R.layout.item_buy_service_layout, data);
    }


    @Override
    protected void convert(BaseViewHolder helper, BuyServiceBean item) {
        helper.setText(R.id.item_buy_text_title, item.getTitle());
        helper.setText(R.id.item_buy_text_price, item.getPrice());
        helper.setText(R.id.item_buy_text_content, item.getContent());
    }
}
